/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package day04;

import java.util.Scanner;

/**
 *
 * @author Administrator
 */
public class QLSV {

    private SinhVien[] listOfSV = new SinhVien[2];

    /*
     * Nhan sinh vien
     */
    public void nhapSinhVien() {
        
        Scanner s = new Scanner(System.in);
        for (int i = 0; i < this.listOfSV.length; i++) {
            System.out.println("Nhap ten:");
            String ten = s.next();
            System.out.println("Nhap masv:");
            String ms = s.next();
            System.out.println("Nam Sinh:");
            int ns = s.nextInt();
            SinhVien sv = new SinhVien(ten, ms, ns);
            this.listOfSV[i] = sv;
        }
    }
    /*
     * xuat mang sv
     */
    
    public void xuatSV() {
        for (SinhVien sv : this.listOfSV) {
            System.out.println(sv);
        }

    }
}
